var ligerGrid;

$(function() {
			var options = {
				queryKey : queryKey,
				pageSize : 30,
				gridWidth : null,
				gridHeight : 500,
				showIdx : false,
				// init param for groove.query, property querykey is reserved,
				// property method is reserved,
				// init param for groove.view, property id is reserved
				gridRender : function(grid) {
					ligerGrid = grid;
				}
			};
			var gridPanel = new $.grooveQuery(options);

			$("#pageloading").hide();
		});

function defaultFnRender(rowdata, rowindex, value, column) {
	if (column.name == "ML_THISDATE" || column.name == "ML_DUEDATE") {
		return formatDate(value);
	} else if (column.name == "SP") {
		return "<a href=\"" + context + "/site/companySupplier/11-1.jsp?id="
				+ rowdata["CONTRACT_ID"] + "\">还款</a>";
	}
	return value;
}